﻿@using Abp.Application.Services.Dto;
@using Batman.FormGenerator.Domain;
@model PagedResultDto<Form>
@{
    ViewBag.JsUrl = "/fg/js/index.js";
}
<script>
    var paged = @Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(Model));
</script>
<ol class="breadcrumb">
    <li><a href="#">首页</a></li>
    <li><a href="#">表单</a></li>
    <li class="active">自定义表单</li>
</ol>
<div class="panel panel-default" id="fg-form-index">
    <div class="panel-heading">
        <span>表单</span>
    </div>
    <div class="panel-body">
        <el-table border stripe :data="paged.Items">
            <el-table-column prop="Id" label="编号" width="100px"></el-table-column>
            <el-table-column prop="Title" label="标题" show-overflow-tooltips></el-table-column>
            <el-table-column width="100px" align="center">
                <template slot-scope="scope">
                    <a :href="'@Url.Action("Update")/'+scope.row.Id" type="text">编辑</a>
                </template>
            </el-table-column>
        </el-table>
    </div>
    <div class="panel-footer">
        <a href="@Url.Action("Create")" class="btn btn-link btn-xs">
            <i class="glyphicon glyphicon-plus"></i>
            新建自定义表单
        </a>
    </div>
</div>
